package com.dkd.manage.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.dkd.common.annotation.Excel;
import com.dkd.common.core.domain.BaseEntity;

/**
 * 餐具库存管理对象 warehouse_inventory
 * 
 * @author 赵文楠
 * @date 2025-05-19
 */
public class WarehouseInventory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 库存记录ID */
    private Long id;

    /** 餐具类型ID */
    @Excel(name = "餐具类型ID")
    private Long utensilTypeId;

    /** 库存数量 */
    @Excel(name = "库存数量")
    private Long quantity;

    /** 最后更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastUpdateTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUtensilTypeId(Long utensilTypeId) 
    {
        this.utensilTypeId = utensilTypeId;
    }

    public Long getUtensilTypeId() 
    {
        return utensilTypeId;
    }
    public void setQuantity(Long quantity) 
    {
        this.quantity = quantity;
    }

    public Long getQuantity() 
    {
        return quantity;
    }
    public void setLastUpdateTime(Date lastUpdateTime) 
    {
        this.lastUpdateTime = lastUpdateTime;
    }

    public Date getLastUpdateTime() 
    {
        return lastUpdateTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("utensilTypeId", getUtensilTypeId())
            .append("quantity", getQuantity())
            .append("lastUpdateTime", getLastUpdateTime())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
